![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
#include <core/processor/buffer.h>
Public Member Functions | |
| void | emplace (CaptureBasePtr _cap) |
| Adds a capture to the buffer, with its time stamp. More... | |
Public Member Functions inherited from wolf::Buffer< CaptureBasePtr > | |
| Buffer () | |
| Default constructor. More... | |
| ~Buffer (void) | |
| Destructor. More... | |
| CaptureBasePtr | select (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| Select an element from the buffer. More... | |
| ConstIterator | selectIterator (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| Select an element iterator from the buffer. More... | |
| Iterator | selectIterator (const TimeStamp &_time_stamp, const double &_time_tolerance) |
| Select an element iterator from the buffer (see the const version) More... | |
| CaptureBasePtr | selectFirstBefore (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| Returns the oldest element if it is older than _time_stamp or within the time tolerance (T() otherwise) More... | |
| CaptureBasePtr | selectLastAfter (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| Returns the newest element if it is newer than _time_stamp or within the time tolerance (T() otherwise) More... | |
| CaptureBasePtr | selectFirst () const |
| Returns the oldest element (T() if empty) More... | |
| CaptureBasePtr | selectLast () const |
| Returns the newest element (T() if empty) More... | |
| SizeStd | size (void) const |
| Returns the number of elements of the buffer. More... | |
| void | emplace (const TimeStamp &_time_stamp, const CaptureBasePtr &_element) |
| Adds an element to the buffer. More... | |
| const std::map< TimeStamp, CaptureBasePtr > & | getContainer () const |
| Returns the container with elements of the buffer. More... | |
| std::map< TimeStamp, CaptureBasePtr > & | getContainer () |
| Returns the container with elements of the buffer. More... | |
| void | removeUpTo (const TimeStamp &_time_stamp) |
| Removes all elements in the buffer with a time stamp older than or equal to the specified. More... | |
| void | removeUpToLower (const TimeStamp &_time_stamp) |
| Removes all elements in the buffer with a time stamp older than the specified. More... | |
| void | clear () |
| Clears the buffer. More... | |
| bool | empty () const |
| Returns whether the buffer is empty. More... | |
Additional Inherited Members | |
Public Types inherited from wolf::Buffer< CaptureBasePtr > | |
| typedef std::map< TimeStamp, CaptureBasePtr >::iterator | Iterator |
| Buffer iterator. More... | |
| typedef std::map< TimeStamp, CaptureBasePtr >::const_iterator | ConstIterator |
| Buffer const iterator. More... | |
Static Public Member Functions inherited from wolf::Buffer< CaptureBasePtr > | |
| static bool | checkTimeTolerance (const TimeStamp &_time_stamp1, const TimeStamp &_time_stamp2, const double &_time_tolerance) |
| Returns whether the time distance between two time stamps is smaller than or equal to the time tolerance. More... | |
| static bool | doubleCheckTimeTolerance (const TimeStamp &_time_stamp1, const double &_time_tolerance1, const TimeStamp &_time_stamp2, const double &_time_tolerance2) |
| Returns whether the time distance between two time stamps is smaller than or equal to the minimum of their time tolerances. More... | |
Protected Attributes inherited from wolf::Buffer< CaptureBasePtr > | |
| std::map< TimeStamp, CaptureBasePtr > | container_ |
| Main buffer container, ordered by time stamp. More... | |
Buffer of Captures.
| void wolf::BufferCapture::emplace | ( | CaptureBasePtr | _cap | ) |
Adds a capture to the buffer, with its time stamp.